home *** CD-ROM | disk | FTP | other *** search
/ Your Web Site Creator / Your Web Site Creator.iso / WebSite / data1.cab / Program_Executable_Files / Classes / CALCSIM2.CLA (.txt) < prev    next >
Encoding:
Java Class File  |  1999-01-13  |  791 b   |  24 lines

  1. import java.applet.Applet;
  2. import java.awt.BorderLayout;
  3. import java.awt.Container;
  4.  
  5. public class CalculatorSimple2 extends Applet {
  6.    CalculatorPanel2 canvas1;
  7.    SimpleBorderPanel2 panel1;
  8.  
  9.    public void init() {
  10.       this.canvas1 = new CalculatorPanel2(this, 0);
  11.       this.panel1 = new SimpleBorderPanel2(this, 0);
  12.    }
  13.  
  14.    public void start() {
  15.       this.panel1.setLayout(new BorderLayout());
  16.       this.panel1.add("Center", this.canvas1);
  17.       ((Container)this).setLayout(new BorderLayout());
  18.       ((Container)this).add("Center", this.panel1);
  19.    }
  20.  
  21.    public void stop() {
  22.    }
  23. }
  24.